package xdu.lz.stage2_design_pattern.chapter8_guarded_suspension_pattern;

public class SuspensionClient {
    public static void main(String[] args) throws InterruptedException {
        final RequestQueue queue = new RequestQueue();
        new ClientThread(queue,"zs").start();
        ServerThread serverThread = new ServerThread(queue);
        serverThread.start();

        Thread.sleep(1500);

        serverThread.close();
    }

}
